<template>
  <div class="page">
    <Navbarelder title="政策详情" />
    <div class="content">
      <div class="title">{{ detail.title }}</div>
      <div class="subTitle">{{ detail.createBy }} | {{ detail.createTime }}</div>
      <div class="desc" v-html="detail.content" />
    </div>
  </div>
</template>

<script>
import { http_policy } from '@/api'

export default {
  name: 'Consulting',
  data() {
    return {
      detail: {}
    }
  },
  created() {
    const { id } = this.$route.query
    http_policy.read({ id }).then(res => {
      this.detail = res.data
    })
  },
  methods: {
  }
}
</script>

<style scoped lang="scss">
.content {
    .title {
        font-size: 28px;
        font-family: PingFang SC;
        font-weight: 800;
        color: #333333;
        line-height: 32px;
        text-align: center;
    }
    .subTitle {
        font-size: 15px;
        font-family: PingFang SC;
        font-weight: 800;
        color: #999999;
        margin: 26px 0 15px 0;
        text-align: center;
    }
    .desc {
        font-size: 18px;
    }
}

</style>
